package cn.edu.jlu.community.app.post.forum;

import android.content.Intent;

import butterknife.OnClick;
import cn.edu.jlu.community.R;
import cn.edu.jlu.community.app.post.PostListFragment;


public class ForumFragment extends PostListFragment {

    public static ForumFragment newInstance(int category) {
        return PostListFragment.newInstance(category, "帖子", ForumFragment.class);
    }

    public ForumFragment() {
    }

    @Override
    protected int getLayout() {
        return R.layout.forum_fragment;
    }


    @OnClick(R.id.new_post_button)
    public void onNewPostButtonClick() {
        startActivity(new Intent(getActivity(), NewPostActivity.class));
    }
}
